<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
    </head>
    <script>
        for(var i=1;i<=4;i++){
            for(var k=1;k<=4-i;k++)
            {
            document.write("<span style='display:inline-block;width:7px;'></span>");
        }
        for(var j=1;j<=2*i-1;j++){
            document.write("*");
        }
        document.write("<br/>");

        }
    for(var i=1;i<=3;i++){
        for(var k=1;k<=i;k++){
            document.write("<span style='display:inline-block;width:7px'></span>");
        }
        for(var j=1;j<=7-2*i;j++){
            document.write("*");
        }
        document.write("<br/>");
    }
    </script>
    <body>

    </body>
</html>